/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Converters;

import core.Connection;
import org.jboss.netty.channel.ChannelHandlerContext;

/**
 *
 * @author MOI
 */
public class ConnectionConverter implements ApiConverter<ChannelHandlerContext, Connection>{

    public ChannelHandlerContext convertB(Connection element) {
      return element.getContext();
    }

    public Connection convertA(ChannelHandlerContext element) {
        return new Connection(element);
    }

}
